(function(){"use strict";BX.namespace("BX.Landing");var n=BX.Landing.Utils.onCustomEvent;BX.Landing.BlockHeaderSidebar=function(){};BX.Landing.BlockHeaderSidebar.init=function(e){var t=BX.findParent(e,{className:"block-wrapper"});t.style.position="sticky";t.style.top="-1px";t.style.transitionProperty="top";t.style.transitionDuration=".2s";n("BX.Landing.BlockAssets.Header:onSetOnTop",(function(n){t.style.top=n.data.height+"px"}));n("BX.Landing.BlockAssets.Header:onUnsetOnTop",(function(n){t.style.top=n.data.height+"px"}));n("BX.Landing.BlockAssets.Header:onSetInFlow",(function(n){t.style.top="0"}))};n("BX.Landing.Block:init",(function(n){var e=n.makeRelativeSelector(".landing-block-node-navbar");if((BX.Landing.getMode()==="view"||BX.Landing.getMode()==="preview")&&n.block.querySelectorAll(e).length>0){BX.Landing.BlockHeaderSidebar.init(n.block.querySelector(e))}}))})();
//# sourceMappingURL=header-sidebar.map.js